#ifndef LVGL_FONT
#define LVGL_FONT

#include<stdio.h>
#include<stdlib.h>
#include<uchar.h>

class lvgl_font
{
public:
    lvgl_font();

public:
    uint8_t *getFont16Data(uint32_t unicode);

private:
    uint8_t *__user_font_getdata(int offset, int size);


public:
    int w,h;
private:
    typedef struct{
        uint16_t min;
        uint16_t max;
        uint8_t  bpp;
        uint8_t  reserved[3];
    }x_header_t;
    typedef struct{
        uint32_t pos;
    }x_table_t;
    typedef struct{
        uint8_t adv_w;
        uint8_t box_w;
        uint8_t box_h;
        int8_t  ofs_x;
        int8_t  ofs_y;
        uint8_t r;
    }glyph_dsc_t;
    x_header_t __g_xbf_hd;

   uint8_t buff[256];
};

#endif // LVGL_FONT
